/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cz.muni.fi.pb138;

import java.io.IOException;
import java.net.URL;
import java.sql.Connection;

/**
 *
 * @author Vasa
 */
public interface Connector {
    
    
    /**
     * Gets authentication infomrmations about user, searched word and dictionary.
     * Creates url from given infomrmations and returns xml sored on the url.
     * 
     * @param   username    username used to user authentication
     * @param   password    password used to user authentication
     * @param   word        searched word in dictionary
     * @param   dicionary   dictionay, where should be searched for given word
     * @throws  IOException when cannot be opened input stream from url
     * @return  xml in string taken from url created from given informations
     */
    public String getXMLFromURL(final String username, final String password, String word, String dictionary)
            throws IOException;
}
